import { createApp } from 'vue'
import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'
// 引入初始化样式
import '@/styles/common.scss'
// 引入自定义的懒加载指令插件
import { lazyPlugin } from './directives'
// 引入components中自定义的全局组件
import { componentPlugin } from './components'

const app = createApp(App)

app.use(createPinia().use(persist))
app.use(router)
app.use(lazyPlugin)
app.use(componentPlugin)

app.mount('#app')

